package com.netty.server.processor;

import com.netty.server.cmd.ByteCmd;
import com.netty.server.cmd.LoginCmd;
import org.springframework.scheduling.annotation.Async;

import java.util.concurrent.CompletableFuture;

/**
 * @author: 王霄
 * @date: 2022/2/18 12:32
 **/
public interface UpProcessor {

    @Async("cmdExecutor")
    CompletableFuture<Boolean> login(LoginCmd loginCmd);

    @Async("cmdExecutor")
    void processor(ByteCmd byteCmd);
}
